<extend name="Public:common" />
<!--/sidebar-->
<block name="content">
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list"> <i class="icon-font"></i>
                <a href="/Admin">首页</a>
                <span class="crumb-step">&gt;</span>
                <span class="crumb-name">用户管理</span>
            </div>
        </div>
        <div class="result-wrap">
            <div class="result-content">

                <!-- <?php var_dump($vo)?>
                -->
                <table class="result-tab" width="100%">
                    <tr>
                        <th>ID</th>
                        <th>电话</th>
                        <!-- <th>会员邮箱</th>
                    -->
                    <th>推荐人ID</th>
                    <th>会员姓名</th>
                    <th>账户余额</th>
                    <th>冻结金钱</th>
                    <th>注册时间</th>
                    <th>会员状态</th>
                    <!-- <th>计划条款</th>
                -->
                <!-- <th>加入人数</th>
            -->
            <th>操作</th>
        </tr>
        <tr>
            <td>
                <{$vo.uid}></td>
                <td>
                    <{$vo.tel}></td>
                    <if condition="$vo.yaoqm neq '' ">
                        <td>
                            <{$vo.yaoqm}></td>
                            <else />
                            <td style="color:green">无</td>
                        </if>

                        <if condition="($vo.realname neq '') ">
                            <td>
                                <{$vo.realname}></td>
                                <else />
                                <td style="color:green">未实名认证</td>
                            </if>
                            <if condition="($vo.yue eq '')">
                                <td>0</td>
                                <else />
                                <td>
                                    <{$vo.yue}></td>
                                </if>
                                <td>{$vo.userid}</td>

                                <td>
                                    <{$vo.createtime|date="y-m-d",###}></td>
                                    <if condition="($vo.status eq 0) ">
                                        <td>正常</td>
                                        <else />
                                        <td style="color:red">冻结</td>
                                    </if>
                                    <td>

                                    <if condition="($vo.yaoqm eq '')"> 
                                    <else /> 
                                    <a class="link-update" href="<{:U('Admin/User/yaoqing/yid/'.$vo['yaoqm'])}>">邀请人</a>
                                    </if>
                                        
                                        <a class="link-update" href="javascript:del(<{$vo['uid']}>)">删除</a>
                                        <a class="link-update" href="<{:U('Admin/User/userinfo/id/'.$vo['uid'])}>">查看</a>
                                        <if condition="$vo.stAus eq 0">
                                            <a href="javascript:update(<{$vo['uid']}>
                                                ,
                                                <{$vo['status']}>)">冻结</a>
                                                <else />
                                                <a href="javascript:update(<{$vo['uid']}>
                                                    ,
                                                    <{$vo['status']}>)">解冻</a>
                                                </if>
                                            </td>
                                        </tr>
                                    </foreach>
                                </table>
                                <div class="list-page">
                                    <{$page}></div>
                                </div>
                            </form>
                        </div>
                    </div>

                    <!--/main-->

                    <script type="text/javascript">
function update(id,sta) {
    $.MsgBox.Confirm("温馨提示", "执行修改确定继续吗？温馨提示", function () {
      $.post('__URL__/Update', {'sid':id,sta:sta}, function(data){
           $.MsgBox.Alert("消息", data);
                    location.reload([true])  
          });
        });
}
          function del(id){
            // $.MsgBox.Alert(1);
              $.MsgBox.Confirm("温馨提示", "执行删除后将无法恢复，确定继续吗？温馨提示", function () {
                $.post('__URL__/delete', {'sid':id}, function(data) {
                    $.MsgBox.Alert("消息", data);
                    location.reload([true])  
                });

         });
        }
            function selectAll(checkbox) {
                $('input[type=checkbox]').prop('checked', $(checkbox).prop('checked'));
            }
function delAll(){
    var idstr="";
    $('.del').each(function(){
        if($(this).prop("checked")){
            idstr+=","+$(this).val();
            }  
        })
     $.MsgBox.Confirm("温馨提示", "执行删除后将无法恢复，确定继续吗？温馨提示", function () {
    $.post('__URL__/delete',{"idstr":idstr,"action":"delAll"},function(data){
       $.MsgBox.Alert("消息", data);
        location.reload([true])  
        });
     });
}

</script>
                </block>